package com.hyf.serviceedu;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
@ComponentScan(basePackages = {"com.hyf"})// 通过swagger 访问有指定的访问路径  http://localhost:8001/swagger-ui.html
@EnableDiscoveryClient// 服务注册
@EnableFeignClients// 服务调用
public class Eduservice {
    public static void main(String[] args) {
        SpringApplication.run(Eduservice.class, args);
    }
}
